/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package oplm;

import java.awt.Frame;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 *
 * @author hh
 */
public class Dialog extends JDialog{
    
    public static JDialog show(String msg,JFrame frame){
        
 
        JTextArea area = new JTextArea(msg);
        area.setEditable(false);
               JScrollPane sc = new JScrollPane(area);
        JDialog dialog = new JDialog(frame);
        dialog.add(new JLabel("MSG"));
        dialog.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        dialog.setSize(100, 100);
        dialog.setVisible(true);
        return dialog;
    }
    
}
